package com.mes.cloud.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.sql.Date;

/**
 * 组织行政区
 *
 * @author syn
 * @Time 2019-10-24
 */
@ApiModel(value = "OrgAreaRefDTO", description = "行政区划")
@Data
public class OrgAreaRefDTO extends BaseDto implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 行政区id
     */
    @ApiModelProperty(value = "行政区id", dataType = "Long")
    @NotNull(message = "areaId不能为空！")
    private Long areaId;
    /**
     *
     */
    @ApiModelProperty(value = "创建时间", dataType = "Long")
    private Date crtdate;
    /**
     *
     */
    @ApiModelProperty(value = "ID", dataType = "Long")
    private Long id;
    /**
     * 0:正常 1：删除
     */
    @ApiModelProperty(value = "0:正常 1：删除", dataType = "Long")
    private Integer isDelete;
    /**
     * 0:正常 1：禁用
     */
    @ApiModelProperty(value = "0:正常 1：禁用", dataType = "Long")
    private Integer isEnable;
    /**
     * 组织id
     */
    @ApiModelProperty(value = "组织id", dataType = "Long")
    @NotNull(message = "orgId不能为空！")
    private Long orgId;

    /**
     *
     */
    @ApiModelProperty(value = "更新时间", dataType = "Long")
    private Date upddate;
}
